
#include "stdafx.h"
#include "WicFastMetadataEncoder.h"

CWicFastMetadataEncoder::CWicFastMetadataEncoder()
{
    m_pIWICFastMetadataEncoder = NULL;
}

CWicFastMetadataEncoder::~CWicFastMetadataEncoder()
{
    if(m_pIWICFastMetadataEncoder)
    {
        m_pIWICFastMetadataEncoder->Release();
    }
    m_pIWICFastMetadataEncoder = NULL;
}

CWicFastMetadataEncoder::CWicFastMetadataEncoder(CWicFastMetadataEncoder const & objFastMetadataEncoder)
{
    m_pIWICFastMetadataEncoder = objFastMetadataEncoder.m_pIWICFastMetadataEncoder;
    m_pIWICFastMetadataEncoder->AddRef();
}

CWicFastMetadataEncoder& CWicFastMetadataEncoder::operator=(CWicFastMetadataEncoder const & objFastMetadataEncoder)
{
    if(m_pIWICFastMetadataEncoder)
    {
        m_pIWICFastMetadataEncoder->Release();
    }
    m_pIWICFastMetadataEncoder = objFastMetadataEncoder.m_pIWICFastMetadataEncoder;
    m_pIWICFastMetadataEncoder->AddRef();
    return *this;
}
